import Vue from 'vue';
import VueRouter from 'vue-router';
import AddGoods from "@/pages/AddGoods.vue";
import GoodsList from "@/pages/GoodsList.vue";
import MyCart from "@/pages/MyCart.vue";
Vue.use(VueRouter);
const router = new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '/',
            component:AddGoods
        },
        {
            path:'/goodsList',
            component:GoodsList
        },
        {
            path:'/mycart',
            component:MyCart
        }
    ]
})
export default router;